//
//  YLIconTitleSpotTableViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/1.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLIconTitleSpotTableViewCell.h"
#import "YLIconTitleModel.h"
@interface YLIconTitleSpotTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIView *spot;

@end

@implementation YLIconTitleSpotTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _spot.layer.masksToBounds = YES;
    _spot.layer.cornerRadius = 2.0;
    // Initialization code
}

- (void)setSpotModel:(YLIconTitleSpotModel *)spotModel
{
    _spotModel = spotModel;
    _icon.image = [UIImage imageNamed:spotModel.icon];
    _titleLabel.text = spotModel.title;
    _spot.hidden = !spotModel.haveNews;
}

+ (NSString *)cellID
{
    return @"YLIconTitleSpotTableViewCell";
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
